/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 事业部财务经理审批(OEM)分页查询 /ttFiTripartiteApply/page2
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebateRedApply/listRecord`, params)



// 风险经销商清单维护（ OEM） 根据主键新增或修改单条数据 /tmFiRiskDealer/saveOne
export const saveOne = (params) => axios.post(`/tmFiRiskDealer/saveOne`, params)

// 风险经销商清单维护（ OEM） 查询单条 /tmFiRiskDealer/selectOne?id=主键dealerId
export const selectOne = (param) => axios.get(`/tmFiRiskDealer/selectOne?id=${param.id}`)

// 风险经销商清单维护（ OEM） 根据经销商编号查询库存系数 /ttDealerMonthData/getStockFactorByDealerCode?dealerCode=经销商编码
export const getStockFactorByDealerCode = (dealerCode) => axios.get(`/ttDealerMonthData/getStockFactorByDealerCode?dealerCode=${dealerCode}`)
